package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * 验证码请求DTO
 */
@Data
@Schema(description = "发送验证码请求")
public class VerificationCodeDTO {
    
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @Schema(description = "手机号", required = true, example = "13800138000")
    private String mobile;
    
    @NotBlank(message = "验证码类型不能为空")
    @Pattern(regexp = "^(LOGIN|REGISTER|PASSWORD_RESET)$", message = "验证码类型不正确")
    @Schema(description = "验证码类型: LOGIN-登录 REGISTER-注册 PASSWORD_RESET-重置密码", required = true, example = "LOGIN")
    private String type;
} 